import request from "@/utils/request";

// 根据ID查询详情数据
export function getInfoById(itemId) {
  return request({
    url: "/biz/item/17/getInfoById/" + itemId,
    method: "get",
  });
}

// 1.高对比分辨力
export function contrastResolutionHigh(data) {
  return request({
    url: "/biz/item/17/high",
    method: "post",
    data,
    headers: {
      repeatSubmit: false,
    },
  });
}

// 2.低对比分辨力
export function contrastResolutionLow(data) {
  return request({
    url: "/biz/item/17/low",
    method: "post",
    data,
    headers: {
      repeatSubmit: false,
    },
  });
}

// 3.KAP指示偏离
export function kap(data) {
  return request({
    url: "/biz/item/17/kap",
    method: "post",
    data,
    headers: {
      repeatSubmit: false,
    },
  });
}

// 4.图像均匀性
export function imageUniformity(data) {
  return request({
    url: "/biz/item/17/imageUniformity",
    method: "post",
    data,
    headers: {
      repeatSubmit: false,
    },
  });
}

// 5.测距误差
export function rangeError(data) {
  return request({
    url: "/biz/item/17/rangeError",
    method: "post",
    data,
    headers: {
      repeatSubmit: false,
    },
  });
}
